#include <Status.hpp>


namespace hnurm_behavior_trees {
    Status::Status(
        const std::string& condition_name,
        const BT::NodeConfiguration &conf)
    :BT::ConditionNode(condition_name, conf),
    status_(false)
    {
       
    } // Add a semicolon here
        
    
    BT::NodeStatus Status::tick()
    {
        bool  status=false;
        getInput("Status",status);
        // std::cout<<"!!!!!!!!!!!!!!!!!!!!=====>" << status <<std::endl;
        if(status)
        {     
            return BT::NodeStatus::SUCCESS;    
        }
        else 
        {  
            return BT::NodeStatus::FAILURE ;  
        }

    }
}



